<?php
/**
 * CreateTime: 2023/3/2 10:10
 */

namespace App\Models\MeMediator;

use App\Consts\TableConsts\TableConsts;
use App\Func\StaffFunc;
use App\Models\BaseModelV2;

class MeMediatorVerbalTrickModel extends BaseModelV2
{
    protected $table = TableConsts::ME_MEDIATOR_VT;

    protected $primaryKey = 'verbal_trick_id';

    protected $fillable = [
        'verbal_trick_id',
        'vt_content',
        'vt_type',
        'created_time',
        'updated_time',
        'owner_id',
    ];

    public function getOwnerStrAttribute($value){
        $all = StaffFunc::getStaffAllBySelect();
        return StaffFunc::getStaffNameByStaffId($all,$value);
    }
}